(function scriptBlock()
{
    var a = 2;
    var b = 4;
    var c = -4;

    if (((b * b) - (4 * a * c)) < 0)
    {
        console.log("The equation has no roots.");
    }
    else if (((b * b) - (4 * a * c)) === 0)
    {
        console.log("The equation has one root = " + (-b / (2 * a)));
    }
    else if (((b * b) - (4 * a * c)) > 0)
    {
        console.log("The equation has two roots = " + (((-b + Math.sqrt(b * b - (4 * a * c))) / (2 * a)) | 0) + (((-b - Math.sqrt(b * b - (4 * a * c))) / (2 * a)) | 0));
    }
})();